#include <jni.h>
#include <string>
#include "file_utils.h"

extern "C" JNIEXPORT jstring JNICALL
Java_com_pvdnc_worldmagisk_riru_installer_InstallerMainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";

    char* p_file_content= nullptr;
    file_size read_size=read_file("/system/bin/app_process",p_file_content);

    return env->NewStringUTF(hello.c_str());
}